package com.webchat.chat.core.dto.evenMessage;

import com.webchat.chat.core.enums.FileType;
import com.webchat.chat.core.enums.MsgType;
import com.webchat.chat.core.enums.SocketClientType;

import java.io.Serializable;

/**
 * Created by Owner on 2018/6/27.
 */
public class MsgInfo implements Serializable {
    private String id;
    /**
     * 发送人
     */
    private String sourceClientId;
    /**
     * 发送人用户名
     */
    private String sourceUserName;
    /**
     * 接收人
     */
    private String targetClientId;
    /**
     * 接受者用户名
     */
    private String targetUserName;
    /**
     * 接受者类型
     */
    private SocketClientType targetClientType;
    /**
     * 消息类型
     */
    private MsgType msgType;
    /**
     * 文本内容
     */
    private String content;
    /**
     * 文件类型
     */
    private FileType fileType;
    /**
     * 是否文件
     */
    private Boolean isFile;
    /**
     * 如果是文件指明路径
     */
    private String path;

    /**
     * 消息是否需要审核
     * @return
     */
    private  Boolean isCheck;

    public Boolean getCheck() {
        return isCheck;
    }

    public void setCheck(Boolean check) {
        isCheck = check;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSourceClientId() {
        return sourceClientId;
    }

    public void setSourceClientId(String sourceClientId) {
        this.sourceClientId = sourceClientId;
    }

    public String getTargetClientId() {
        return targetClientId;
    }

    public void setTargetClientId(String targetClientId) {
        this.targetClientId = targetClientId;
    }

    public String getTargetUserName() {
        return targetUserName;
    }

    public void setTargetUserName(String targetUserName) {
        this.targetUserName = targetUserName;
    }

    public SocketClientType getTargetClientType() {
        return targetClientType;
    }

    public void setTargetClientType(SocketClientType targetClientType) {
        this.targetClientType = targetClientType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getFile() {
        return isFile;
    }

    public void setFile(Boolean file) {
        isFile = file;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }

    public String getSourceUserName() {
        return sourceUserName;
    }

    public void setSourceUserName(String sourceUserName) {
        this.sourceUserName = sourceUserName;
    }

    public FileType getFileType() {
        return fileType;
    }

    public void setFileType(FileType fileType) {
        this.fileType = fileType;
    }

    @Override
    public String toString() {
        return "MsgInfo{" +
                "id='" + id + '\'' +
                ", sourceClientId='" + sourceClientId + '\'' +
                ", sourceUserName='" + sourceUserName + '\'' +
                ", targetClientId='" + targetClientId + '\'' +
                ", targetUserName='" + targetUserName + '\'' +
                ", targetClientType=" + targetClientType +
                ", msgType=" + msgType +
                ", content='" + content + '\'' +
                ", fileType=" + fileType +
                ", isFile=" + isFile +
                ", path='" + path + '\'' +
                '}';
    }
}

